package com.api;

import com.bean.ResponseBean;
import com.service.DyTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1")
public class DyTypeAction {

    @Autowired
    private DyTypeService dyTypeService;

    public static void main(String[] args) {
        String str ="84FA01003880FF400E315041592E5359532E4444463031FFFF006040FFFF0000034b78727f93b59d844b78727f93b59d840001006000808001";
        System.out.println(Integer.toHexString(52));

    }



    /**
     * 获取所有电影类型
     * @return
     */
    @RequestMapping("/type/findAll")
    public ResponseBean  findAll()
    {
        List list = dyTypeService.findAll();
        return new ResponseBean(200,"success",list);
    }

}
